<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../../tpl/head.jsp"%>
<link rel="stylesheet" href="statics/css/searchform.css">
<link rel="stylesheet" href="statics/css/BasicData/tpl/customerinfo.css">
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-header layui-bg-cyan">
            <span>客户信息明细</span>
        </div>
        <div class="layui-card-body">
            <div class="layui-row">
                <div class="layui-col-md12">
                    <form class="layui-form" action="" lay-filter="editor-form" id="editor-form">
                        <div class="layui-tab layui-tab-card">
                            <ul class="layui-tab-title">
                                <li class="layui-this">基本信息</li>
                                <li class="">日志</li>
                            </ul>
                            <div class="layui-tab-content">
                                <div class="layui-tab-item layui-show">
                                    <%--                                    sk start--%>
                                    <dl class="layui-row sk_row">
                                        <dd class="layui-col-md3">
                                            <div class="layui-col-xs4 text-right padding-right">
                                                客户logo
                                            </div>
                                            <div class="layui-col-xs8">
                                                <div class="layui-upload-drag uploadimg" lay-data="">
                                                    <img src="statics/images/layui-logo.jpg" id="userphotos"
                                                         alt="上传成功后渲染" style="max-width: 100%">
                                                    <%-- <input name="logo" type="hidden">
                                                     <div class="padding text-center">
                                                         <input type="button" class="layui-btn uploadimg" lay-data="" style="margin-right: 10px!important;"  id="logoadd" value="添加">
                                                         <input type="button" class="layui-btn layui-btn-danger" id="userphotosdel"  value="清空">
                                                     </div>--%>
                                                </div>
                                            </div>
                                        </dd>
                                        <dd class="layui-col-md3">
                                            <div class="layui-col-xs4 text-right padding-right">
                                                <text>客户简称</text>
                                            </div>
                                            <div class="layui-col-xs8"><input type="text" name="abbreviation"
                                                                              lay-verify="required" autocomplete="off"
                                                                              class="layui-input"></div>
                                        </dd>
                                        <dd class="layui-col-md3">
                                            <div class="layui-col-xs4 text-right padding-right">
                                                <text>业务员</text>
                                            </div>
                                            <div class="layui-col-xs8"><input type="text" name="salesman"
                                                                              readonly="true" lay-verify="required"
                                                                              autocomplete="off" class="layui-input">
                                            </div>
                                        </dd>
                                        <dd class="layui-col-md3">
                                            <div class="layui-col-xs4 text-right padding-right">
                                                <text>客户编码</text>
                                            </div>
                                            <div class="layui-col-xs8"><input type="text" name="code"
                                                                              lay-verify="required" autocomplete="off"
                                                                              class="layui-input"></div>
                                        </dd>
                                        <dd class="layui-col-md3">
                                            <div class="layui-col-xs4 text-right padding-right">
                                                客户三位简码
                                            </div>
                                            <div class="layui-col-xs8">
                                                <input type="text" name="shortCode" id="shortCode" lay-verify="required" autocomplete="off" class="layui-input">
                                            </div>
                                        </dd>
                                        <dd class="layui-col-md3">
                                            <div class="layui-col-xs4 text-right padding-right">
                                                客户类型
                                            </div>
                                            <div class="layui-col-xs8"><select name="type"
                                                                               lay-filter="specificclassification"
                                                                               lay-verify="required">
                                                <%-- <option value="0">潜在客户</option>
                                                 <option value="1">正式客户</option>
                                                 <option value="2">供应商</option>
                                                 <option value="3">货代</option>
                                                 <option value="4">船运</option>
                                                 <option value="5">其它</option>--%>
                                            </select></div>
                                        </dd>
                                        <dd class="layui-col-md3">
                                            <div class="layui-col-xs4 text-right padding-right">
                                                <text>客户名称</text>
                                            </div>
                                            <div class="layui-col-xs8"><textarea name="name" placeholder="请输入内容"
                                                                                 class="layui-textarea"></textarea>
                                            </div>
                                        </dd>
                                        <dd class="layui-col-md3">
                                            <div class="layui-col-xs4 text-right padding-right">
                                                <text>客户地址</text>
                                            </div>
                                            <div class="layui-col-xs8"><textarea name="address" placeholder="请输入内容"
                                                                                 class="layui-textarea"></textarea>
                                            </div>
                                        </dd>
                                        <dd class="layui-col-md3">
                                            <div class="layui-col-xs4 text-right padding-right">
                                                <text>国家/地区</text>
                                            </div>
                                            <div class="layui-col-xs8"><select name="country" lay-search=""> </select>
                                            </div>
                                        </dd>
                                        <dd class="layui-col-md3">
                                            <div class="layui-col-xs4 text-right padding-right">
                                                港口/省份
                                            </div>
                                            <div class="layui-col-xs8"><select name="province" lay-search=""> </select>
                                            </div>
                                        </dd>
                                        <dd class="layui-col-md3">
                                            <div class="layui-col-xs4 text-right padding-right">
                                                城市
                                            </div>
                                            <div class="layui-col-xs8"><select name="city" lay-search=""> </select>
                                            </div>
                                        </dd>
                                        <dd class="layui-col-md3">
                                            <div class="layui-col-xs4 text-right padding-right">
                                                <text>邮编</text>
                                            </div>
                                            <div class="layui-col-xs8"><input type="text" name="postcode"
                                                                              autocomplete="off" class="layui-input">
                                            </div>
                                        </dd>
                                        <dd class="layui-col-md3">
                                            <div class="layui-col-xs4 text-right padding-right">
                                                <text>电话</text>
                                            </div>
                                            <div class="layui-col-xs8"><input type="tel" name="phone" lay-verify="phone"
                                                                              autocomplete="off" class="layui-input">
                                            </div>
                                        </dd>
                                        <dd class="layui-col-md3">
                                            <div class="layui-col-xs4 text-right padding-right">
                                                <text>账期</text>
                                            </div>
                                            <div class="layui-col-xs8"><input type="text" name="accountPeriod"
                                                                              lay-verify="required" autocomplete="off"
                                                                              class="layui-input"></div>
                                        </dd>
                                        <dd class="layui-col-md3">
                                            <div class="layui-col-xs4 text-right padding-right">
                                                开户银行
                                            </div>
                                            <div class="layui-col-xs8"><input type="text" name="bank" autocomplete="off"
                                                                              class="layui-input"></div>
                                        </dd>
                                        <dd class="layui-col-md3">
                                            <div class="layui-col-xs4 text-right padding-right">
                                                银行账户
                                            </div>
                                            <div class="layui-col-xs8"><input type="text" name="bankaccount"
                                                                              autocomplete="off" class="layui-input">
                                            </div>
                                        </dd>
                                        <dd class="layui-col-md3">
                                            <div class="layui-col-xs4 text-right padding-right">
                                                <text>等级</text>
                                            </div>
                                            <div class="layui-col-xs8"><select name="level" lay-filter="defaultlevel"
                                                                               lay-verify="required">
                                                <%-- <option value="0">重要</option>
                                                 <option value="1">非常重要</option>
                                                 <option value="2">一般</option>
                                                 <option value="3">潜在客户-有明确意向，成交可能性较大</option>
                                                 <option value="4">潜在客户-有意向，但有些犹豫，需要通过努力才能争取的客户</option>--%>
                                            </select></div>
                                        </dd>
                                        <dd class="layui-col-md3">
                                            <div class="layui-col-xs4 text-right padding-right">
                                                <text>主营产品</text>
                                            </div>
                                            <div class="layui-col-xs8"><select name="mainBusiness"
                                                                               lay-search=""> </select></div>
                                        </dd>
                                        <dd class="layui-col-md3">
                                            <div class="layui-col-xs4 text-right padding-right">
                                                <text>客户来源</text>
                                            </div>
                                            <div class="layui-col-xs8"><select name="sourceOfCustomers"
                                                                               lay-search=""> </select></div>
                                        </dd>
                                        <dd class="layui-col-md3">
                                            <div class="layui-col-xs4 text-right padding-right">
                                                <text>业务类型</text>
                                            </div>
                                            <div class="layui-col-xs8"><select name="businessType"
                                                                               lay-search=""> </select></div>
                                        </dd>
                                        <dd class="layui-col-md3">
                                            <div class="layui-col-xs4 text-right padding-right">
                                                主页
                                            </div>
                                            <div class="layui-col-xs8"><input type="text" name="homepage"
                                                                              autocomplete="off" class="layui-input">
                                            </div>
                                        </dd>
                                        <dd class="layui-col-md3">
                                            <div class="layui-col-xs4 text-right padding-right">
                                                SWIFT CODE
                                            </div>
                                            <div class="layui-col-xs8"><input type="text" name="swiftcode"
                                                                              autocomplete="off" class="layui-input">
                                            </div>
                                        </dd>
                                        <dd class="layui-col-md3">
                                            <div class="layui-col-xs4 text-right padding-right">
                                                跟进周期(天)
                                            </div>
                                            <div class="layui-col-xs8"><input type="number" min="0" max="3650"
                                                                              name="followUpPeriod" autocomplete="off"
                                                                              class="layui-input"></div>
                                        </dd>
                                        <dd class="layui-col-md3">
                                            <div class="layui-col-xs4 text-right padding-right">
                                                快递地址
                                            </div>
                                            <div class="layui-col-xs8"><input type="text" name="expressAddress"
                                                                              autocomplete="off" class="layui-input">
                                            </div>
                                        </dd>
                                        <dd class="layui-col-md3">
                                            <div class="layui-col-xs4 text-right padding-right">
                                                快递到付账号
                                            </div>
                                            <div class="layui-col-xs8"><input type="text" name="paymentAccountNo"
                                                                              autocomplete="off" class="layui-input">
                                            </div>
                                        </dd>
                                        <%--<dd class="layui-col-md3">
                                            <div class="layui-col-xs4 text-right padding-right">
                                                跟进阶段
                                            </div>
                                            <div class="layui-col-xs8"><select name="status" lay-search="">
                                                &lt;%&ndash; <option value="">跟进阶段</option>&ndash;%&gt;
                                                &lt;%&ndash;  <option value="1">洽谈中</option>&ndash;%&gt;
                                            </select></div>
                                        </dd>--%>
                                        <dd class="layui-col-md3">
                                            <div class="layui-col-xs4 text-right padding-right">
                                                <text>属性</text>
                                            </div>
                                            <div class="layui-col-xs8"><select name="attributesOfCustomers" lay-search=""> </select></div>
                                        </dd>
                                        <dd class="layui-col-md3">
                                            <div class="layui-col-xs4 text-right padding-right">
                                                信用额度
                                            </div>
                                            <div class="layui-col-xs8"><input type="text" name="creditLine" disabled autocomplete="off" class="layui-input"></div>
                                        </dd>
                                        <dd class="layui-col-md3">
                                            <div class="layui-col-xs4 text-right padding-right">
                                                备注
                                            </div>
                                            <div class="layui-col-xs8"><textarea name="remark" placeholder="请输入内容"
                                                                                 class="layui-textarea"></textarea>
                                            </div>
                                        </dd>

                                        <dd class="layui-col-md3">
                                            <div class="layui-col-xs4 text-right padding-right">
                                                附件
                                            </div>
                                            <div class="layui-col-xs8">
                                                <div class="layui-input-inline" id="addfilediv"></div>
                                            </div>
                                        </dd>

                                    </dl>
                                    <%--                                    sk over--%>

                                </div>
                                <div  class="layui-tab-item">
                                    <table class="layui-table" id="infoselect" lay-filter="infotable"></table>
                                </div>
                            </div>
                        </div>
                        <table class="layui-table" id="customerselect" lay-filter="customertable"></table>
                        <%--底部按钮--%>
                        <div class="padding">
                            <div class="layui-col-md2">
                                <a type="button" class="layui-btn" id="print">打印</a>
                            </div>
                            <div class="layui-col-md10 text-right">
                                <a type="button" class="layui-btn layui-btn-primary" id="shutdown">关闭</a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<%@ include file="../../tpl/foot.jsp"%>
<script src="statics/js/BasicData/tpl/viewcustomerinfo.js"></script>